Federated Identity Management (FIM) leverages Open Authorization 2 (OAuth 2.0)for delegated authorization and Security Assertion Markup Language (SAML) for identity federation and single sign-on (SSO) capabilities.

SSO: OAuth 2.0 v. SAML

OAuth 2.0 enables users to delegate access to their resources across federated domains, while SAML facilitates the exchange of authentication and authorization data between identity providers and service providers to enable SSO and federated access to resources.

SAML allows for the exchange of authentication and authorization data between identity providers (IdPs) and service providers (SPs) in a FIM scenario. It enables the exchange of XML-based assertions, which contain information about a user’s identity, authentication status, and authorized access rights. These assertions are used to establish trust and enable SSO across federated domains.

SAML enables true SSO capabilities by allowing users to authenticate once with an IdP and access multiple SPs without the need to reauthenticate. When a user attempts to access a resource hosted by an SP, the SP redirects the user to the IdP for authentication. Upon successful authentication, the IdP generates a SAML assertion containing the user’s identity and attributes, which is sent back to the SP to grant access.

In FIM, OIDC can be used to authenticate users and obtain identity information from an IdP. The IdP issues ID tokens containing information about the authenticated user, such as their unique identifier and additional claims. These ID tokens can then be validated by the client application and establish the user’s identity within the federated system.

Other Uses of OAuth 2.0

Additionally, OAuth 2.0 is used for third-party application access and can be combined with OpenID Connect for authentication and authorization.

Third-Party Application Access

OAuth 2.0 is widely used by third-party applications (clients) to access resources on various online platforms (resource servers) such as social media networks (e.g., Facebook, Twitter), cloud services (e.g., Google Drive, Dropbox), and application programming interfaces (APIs) provided by companies (e.g., GitHub, Spotify). Users can grant permissions to third-party applications to access their resources without sharing their login credentials. This is commonly seen when you log in to a service using your Google or Facebook account on a third-party website or application.

OAuth 2.0 and OpenID Connect

OAuth 2.0 and OIDC are often used together, especially in scenarios where both authentication and authorization are required. OAuth 2.0 is used to delegate authorization, allowing clients to obtain access tokens to access protected resources on behalf of users. Clients authenticate themselves to the authorization server (OAuth 2.0 server) and obtain access tokens after users grant consent. Access tokens represent the permissions granted to the client by the user and are used to access APIs or resources on the resource server.

OIDC adds an authentication layer to OAuth 2.0, allowing clients to verify the identity of users. It introduces the concept of ID tokens, which are JSON Web Tokens (JWT) containing identity information about the authenticated user. Clients can obtain ID tokens from the OIDC provider along with access tokens during the OAuth 2.0 flow. ID tokens contain standard claims such as the user’s unique identifier, name, and email, providing information about the user’s identity.